<?php
/**
 *
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       app.View.Layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
 */

$cakeDescription = __d('cake_dev', 'Truong Cho Con');
?>
<!DOCTYPE html>
<html>
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php echo $cakeDescription ?>:
		<?php echo $title_for_layout; ?>
	</title>
	<?php
		echo $this->Html->meta('icon');

//		echo $this->Html->css('cake.generic');
		echo $this->Html->css('bootstrap/bootstrap');
		echo $this->Html->css('star-rating/star-rating');
		echo $this->Html->css('style');
		echo $this->Html->css('style_debug');

		echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
	?>
	<?php echo $this->Html->script('jquery/jquery-1.11.1.min');?>
	<?php echo $this->Html->script('bootstrap/bootstrap');?>
	<?php echo $this->Html->script('star-rating/star-rating');?>
</head>
<body>
	<header>
	
		<div class = "container">
		
			<div class = "row">
				<div class = "col-lg-5">
					<?php echo $this->Html->image('logo/logo.png', array(
						'url' => array('controller' => 'home', 'action' => 'index')
					))?>
				</div>
				<div class = "col-lg-7">
					<nav id = "top-nav">
						<ul>
							<li <?php if ($activeMenu == 1) echo 'class = "active"'?>>
								<?php echo $this->Html->link('Về ChoCon', array(
									'controller' => 'home', 'action' => 'about_us'
								))?>
							</li>
							<li <?php if ($activeMenu == 2) echo 'class = "active"'?>>
								<?php echo $this->Html->link('Chia sẻ kinh nghiệm', array(
									'controller' => 'experiences', 'action' => 'index'
								))?>
							</li>
							<li>
								<?php echo $this->Html->link('Sign in', array())?>
							</li>
						</ul>
					</nav>
				</div>
			</div>
		</div>
	</header> <!-- end header -->
	<div id="content">
		<?php echo $this->fetch('content'); ?>
	</div>
	<footer>
		<div class = "container">
		
			<div class = "row">
				<div class = "col-lg-5">					
				</div>
				<div class = "col-lg-7">
					<nav id = "bottom-nav">
						<ul>
							<li>
								<?php echo $this->Html->link('Về ChoCon', array(
									'controller' => 'home', 'action' => 'about_us'
								))?>
							</li>
							<li>
								<?php echo $this->Html->link('Chia sẻ kinh nghiệm', array(
									'controller' => 'experiences', 'action' => 'index'
								))?>
							</li>
							<li>
								<?php echo $this->Html->link('Sign in', array())?>
							</li>
						</ul>
					</nav>
				</div>
			</div>
		</div>
	</footer> <!-- end footer -->
</body>
</html>
